<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>层叠特性</title>
<script type="text/javascript">
	document.write("<h1>title标签中的js代码</h1>")
	document.write("<h2>" + document.url + "<h2>")
	document.write("<h2>" + document.URL + "<h2>")
	document.write("<h2>" + document.characterSet + "<h2>")
	document.write("<h2>" + document.contentType + "<h2>")
</script>
</head>

<body>
	<h1>body代码</h1>
	<input  style="texy-align:center;color: red;font-size: 20px;border: 10px solid blue;
	"onblur="alert(this.value)" type="text" name="userName" id="userName" value=""/>
</body>

<script>
	document.write("<h1>结束标签前的js代码</h1>")
</script>
</html>